package tlias.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tlias.pojo.*;
import tlias.pojo.StudentVO;

import java.util.List;

@Mapper
public interface StudentMapper {
    List<StudentVO> list(StudentQueryParam param);
    void delete(Integer[] ids);
    void add(Student student);
    StudentVO getById(Integer id);
    void update(Student student);
    void updateViolation(@Param("id") Integer id, @Param("score") Integer score);

    List<Student> listByClazzId(Integer[] ids);
}